package com.cms.common.model.services;

import com.cms.common.model.entity.Language;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Service
public interface LanguageService {

    public List<Language> findAll();

    public Language findByCode(String code);

    public Optional<Language> findById(Long id);

    public Language save(Language language);

    public void delete(Long id);

}
